<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="header.jsp" />      
    <div id="inner_wrap">
	<div id="inner_hold">
	<div id="inner">
	<div class="center_hold">
        <jsp:useBean id="orderDetailManagement" class="com.aal.model.OrderDetailManagement">
        </jsp:useBean>
        <% long orderID = Long.parseLong( request.getParameter("orderID")); 
           orderDetailManagement.setOrderId(orderID);
        %>
        <form>
            <fieldset>
            <legend>order detail management</legend>
            <table class="bordered">
                <tr><th>orderID</th><th>productID</th><th>productName</th><th>quantity</th><th>totalNetPrice</th><th>shippingCost</th><th>taxCost</th></tr>
                <c:forEach items="${orderDetailManagement.viewOrderDetail}" var="item">
                <tr>
                    <td>${item.orders.orderID}</td><td>${item.product.productID}</td>
                    <td>${item.product.productName}</td>
                    <td>${item.quantity}</td><td>${item.totalNetPrice}</td>
                    <td>${item.shippingCost}</td><td>${item.taxCost}</td>
                </tr>
                </c:forEach>
            </table>    
            </fieldset>
        </form>
    </div>
	</div>
	</div>
	</div>
<jsp:include page="footer.jsp" />
